email me at borlaj@portlandschools.org

Loading
notes previous (10/<10) submit the dump links  
 

String Array Activities

 

 

In a method public void practiceArrayStrings() do the following: (

  1. Create an array with 4 names.
  2. Have it print out every name on its own line saying Hello Jeff, Hello Omar, Hello Ben
  3. Have it print out the length of each name ( ie Jeff -> 4 letters
  4. [advanced] Have it say how many times the letter e is in each name (ie Jeff-> 1 e) [hard, extra credit]
  5. Have it replace all the a and e with z.
  6. Have it print it out.
  7. [advanced] Have it reorder the words alphabetically using Sort